﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="AdminChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">

<style type="text/css">
        .style1
        {
            font-family: "Segoe UI";
            font-weight: bold;
        }
    .style2
    {
        font-size: 13px;
        font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, Sans-Serif;
    }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

<%--<table id="loginLinkContainer" style="width:100%">
<tr>
<td style="width:50%" align="left">
    Welcome <asp:Label ID="lblUserName" runat="server"></asp:Label>
&nbsp;!</td>
<td style="width:50%" align="right">
    <asp:HyperLink ID="hyplogin" runat="server" Text="Log Out" NavigateUrl="~/Home.aspx"></asp:HyperLink>
</td>
</tr>
</table>--%>

<table id="mainTable" style="width:100%;">
<tr>
    <td style="width:15%" valign="top">
    <table style="width:100%" >
        <tr>
            <td valign="top" align="left" style="width:10%">
                
            </td>
            <td align="center" style="width:90%">
            <table style="width:100%">
            <tr>
            <td style="width:34%"></td>
            
            <td style="width:31%" align="center">
                <h1 class="style1">Change Password</h1>
            </td>

            <td style="width:35%"></td>
            </tr>
             </table>
             <br />
            <table style="width:100%">

<tr>
    <td style="width:40%" align="right" class="style2">User Name</td>
    <td style="width:3%"></td>
    <td style="width:57%" align="left">
        <asp:TextBox ID="txtUserName" 
            runat="server" Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvUserName" runat="server" 
            ControlToValidate="txtUserName" ErrorMessage="Required" 
            ForeColor="Red"></asp:RequiredFieldValidator>
    </td>
</tr>

<tr>
    <td><br /></td>
    <td><br /></td>
</tr>

<tr>
    <td style="width:40%" align="right" class="style2">Secret Question</td>
    <td style="width:3%"></td>
    <td style="width:57%" align="left">
        <asp:TextBox ID="txtsecretQuestion" 
            runat="server" Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvsecretQuestion" runat="server" 
            ControlToValidate="txtsecretQuestion" ErrorMessage="Required" 
            ForeColor="Red"></asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td><br /></td>
    <td><br /></td>
</tr>
<tr>
    <td style="width:40%" align="right" class="style2">Secret Answer</td>
    <td style="width:3%"></td>
    <td style="width:57%" align="left">
        <asp:TextBox ID="txtsecretAnswer" runat="server" 
            Width="176px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvsecretAnswer" runat="server" 
            ControlToValidate="txtsecretAnswer" ErrorMessage="Required" 
            ForeColor="Red"></asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td><br /></td>
    <td><br /></td>
</tr>
<tr>
    <td style="width:40%" align="right" class="style2">Password</td>
    <td style="width:3%"></td>
    <td style="width:57%" align="left">
        <asp:TextBox ID="txtPassword" runat="server" 
            Width="176px" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvPassword" runat="server" 
            ControlToValidate="txtPassword" ErrorMessage="Required" 
            ForeColor="Red"></asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td><br /></td>
    <td><br /></td>
</tr>
<tr>
    <td style="width:40%" align="right" class="style2">Re Type Password</td>
    <td style="width:3%"></td>
    <td style="width:57%" align="left">
        <asp:TextBox ID="txtconfirmPassword" runat="server" 
            Width="176px" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvconfirmpassword" runat="server" 
            ControlToValidate="txtconfirmPassword" ErrorMessage="Required" 
            ForeColor="Red"></asp:RequiredFieldValidator>
        <asp:CompareValidator ID="cmpPassword" runat="server" 
            ControlToCompare="txtPassword" ControlToValidate="txtconfirmPassword" 
            ErrorMessage="Passwords dont match" ForeColor="Red"></asp:CompareValidator>
    </td>
</tr>
</table>
            </td>
        </tr>
    </table>
    </td>
</tr>
</table>

<table style="width:100%">
        <tr>
        <td style="width:50%" align="right">
            <asp:Button ID="btnHome" runat="server" Text="Home" onclick="btnHome_Click" 
                CausesValidation="False" />
        </td>
            <td style="width:50%" align="left">
                <asp:Button ID="btnChangePassword" runat="server" Text="Change Password" onclick="btnChangePassword_Click" 
                    />
            </td>
        </tr>
    </table>

</asp:Content>

